package com.wlc.base.design.strategymode.v1;

/**
 * @author 王立朝
 * @date 2022/3/16
 * @description:
 */
public class TestStrategy {

    public static void main(String[] args){
        StrategyContext strategyContext;

        strategyContext = new StrategyContext(new ConcreteStrategyA());
        strategyContext.contextInterface();

        strategyContext = new StrategyContext(new ConcreteStrategyB());
        strategyContext.contextInterface();

        strategyContext = new StrategyContext(new ConcreteStrategyC());
        strategyContext.contextInterface();

    }
}
